package com.pi.test;

import java.sql.Connection;
import java.sql.DriverManager;
//import java.util.Date;
public class testConnection {
	
	private static final String DbDriver="com.mysql.jdbc.Driver";
	private static final String DbUrl="jdbc:mysql://localhost:3306/publish_information";
	private static final String DbUser="root";
	private static final String DbPassword="damage";
	private static Connection ct;

    static{
    	try{
    		Class.forName(DbDriver);
      	  	ct=DriverManager.getConnection(DbUrl,DbUser,DbPassword);
    	}catch(Exception e){
    		e.printStackTrace();
    	}
    }

	public static void main(String[] args) {
		try{
			
			System.out.println(testConnection.ct);
		}catch(Exception e){
			e.printStackTrace();
		}
		

	}

}
